home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DUProjects / Talker / Sources / Content.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  1.7 KB  |  52 lines  |  [TEXT/CWIE]

  1. //    Release Version:    $ ODF 1 $
  2. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  3.  
  4. #ifndef CONTENT_H
  5. #define CONTENT_H
  6.  
  7. //========================================================================================
  8. #ifndef DEFINES_K
  9. #include "Defines.k"
  10. #endif
  11.  
  12. // ----- Framework Includes -----
  13. #ifndef FWCONTNT_H
  14. #include "FWContnt.h"
  15. #endif
  16.  
  17. //========================================================================================
  18. class CTalkerPart;
  19. class DevUniv_STalker;
  20.  
  21. //========================================================================================
  22. class CTalkerContent : public FW_CContent {
  23. public:
  24.     FW_DECLARE_AUTO(CTalkerContent)
  25.                         CTalkerContent(Environment* ev, CTalkerPart* part);
  26.     virtual             ~CTalkerContent();
  27. // overrides
  28. protected:
  29.     virtual void        Externalize(Environment* ev,
  30.                                      ODStorageUnit* storageUnit,
  31.                                      FW_EStorageKinds storageKind,
  32.                                      FW_CCloneInfo* cloneInfo);
  33.     virtual FW_Boolean    Internalize(Environment* ev,
  34.                                      ODStorageUnit* storageUnit, 
  35.                                      FW_EStorageKinds storageKind,
  36.                                      FW_CCloneInfo* cloneInfo);
  37. //    New members
  38. public:
  39.     virtual void                 MySayText(Environment* ev);
  40.     virtual DevUniv_STalker*    MyGetTalker();
  41. protected:
  42.     FW_Boolean            MyInternalizePartKind(Environment* ev, ODStorageUnit* sourceSU);
  43.     FW_Boolean             MyInternalizeTextData(Environment* ev, ODStorageUnit* sourceSU);
  44. private:
  45.     ODPtr                 fTextBuffer;        // text to be spoken
  46.     ODULong                fTextBytes;            // number of bytes to speak
  47.     CTalkerPart*        fTalkerPart;
  48.     DevUniv_STalker*    fSOMTalker;            // SOM object for speech synthesis
  49. };
  50.  
  51. //========================================================================================
  52. #endif